*Use Country_Ind_Party_Therm.dta

set more off

*********************************************************************************
**** Variables ******************************************************************
*********************************************************************************

***Dependent Variable
*Party Thermometer Eval: Party_Therm_Eval

***Independent Variables (Party Variables)
*Party Age: age_ 
*Party Ideology: LR_ideology_ 
*Standard Deviation of Party Placement: SD_respondent_lr_placement

***Independent Varibles (Individual Variables)
*Income: Income 
*Education: Education 
*Political Information: PolInfo_Index 
*Age: Age 
*Female: Female 
*Urbanness: Urbanness 
*Contact Politician: ContactPol 
*Vote: Vote_curr
*Partisanship: Partisanship
*Vote Makes No Difference: Vote_No_Difference 
*Dissatisfaction with Democracy: Dissatisfied_Dem 
*Government Performance: Govt_Perform

***Independent Variables (Country Variables)
*Plurality: Plurality 
*Presidential: Presidential 
*Federalism: Federalism 
*ENP (Effective Number of Parties): Eff_Num_Parties  
*Age Electoral System: AgeEleSyst 
*Age Democracy: AgeDemocracy

*** Independent Variables (Distance to True Party Placement)
*Absolute Value of the Distance between Respondent Party Placement and Expert Party Placement: expert_lr_deviance_abs 
*Absolute Value of the Distance between Respondent Party Placement and Mean Party Placement: mean_lr_deviance_abs

***Other Independent Variables
*Did Not Place Self: noplacedself_hat_xtmelogit
*Did Not Place Min Two Parties: noplacedmin2_hat_xtmelogit
*Did Not Place Self or Min Two Parties: noSat_Crit12_hat_xtmelogit

***If Only Considering the Major Parties
*Major parties: if include_==1

***Identifiers
*Level 1 (Party level): party_ID
*Level 2 (Individual level): B1005
*Level 3 (Country level): B1003

sum Party_Therm_Eval age_ LR_ideology_ SD_respondent_lr_placement Income Education PolInfo_Index Age Female Urbanness ContactPol Vote_curr Partisanship Vote_No_Difference Dissatisfied_Dem Govt_Perform Plurality Presidential Federalism Eff_Num_Parties  AgeEleSyst AgeDemocracy mean_lr_deviance_abs expert_lr_deviance_abs noplacedself_hat_xtmelogit noplacedmin2_hat_xtmelogit noSat_Crit12_hat_xtmelogit party_ID B1005 B1003 include_


*************************************************************************************************************************************************
**** Table A6: Party Thermometer Evaluations (all parties) **************************************************************************************
*************************************************************************************************************************************************

xtmixed Party_Therm_Eval age_ LR_ideology_ SD_respondent_lr_placement Income Education PolInfo_Index Age Female Urbanness ContactPol Vote_curr Partisanship Vote_No_Difference Dissatisfied_Dem Govt_Perform Plurality Presidential Federalism Eff_Num_Parties  AgeEleSyst AgeDemocracy expert_lr_deviance_abs ||  B1003: ||  B1005: , mle
estimates store M5

xtmixed Party_Therm_Eval age_ LR_ideology_ SD_respondent_lr_placement Income Education PolInfo_Index Age Female Urbanness ContactPol Vote_curr Partisanship Vote_No_Difference Dissatisfied_Dem Govt_Perform Plurality Presidential Federalism Eff_Num_Parties  AgeEleSyst AgeDemocracy expert_lr_deviance_abs noplacedself_hat_xtmelogit  ||  B1003: ||  B1005: , mle
estimates store M6

xtmixed Party_Therm_Eval age_ LR_ideology_ SD_respondent_lr_placement Income Education PolInfo_Index Age Female Urbanness ContactPol Vote_curr Partisanship Vote_No_Difference Dissatisfied_Dem Govt_Perform Plurality Presidential Federalism Eff_Num_Parties  AgeEleSyst AgeDemocracy expert_lr_deviance_abs noplacedself_hat_xtmelogit noplacedmin2_hat_xtmelogit  ||  B1003: ||  B1005: , mle
estimates store M7

xtmixed Party_Therm_Eval age_ LR_ideology_ SD_respondent_lr_placement Income Education PolInfo_Index Age Female Urbanness ContactPol Vote_curr Partisanship Vote_No_Difference Dissatisfied_Dem Govt_Perform Plurality Presidential Federalism Eff_Num_Parties  AgeEleSyst AgeDemocracy expert_lr_deviance_abs noplacedself_hat_xtmelogit noSat_Crit12_hat_xtmelogit  ||  B1003: ||  B1005: , mle
estimates store M8

esttab M5 M6 M7 M8, b(%7.3f) starlevels(* .10 ** .05 *** .01) stats (N, label("N") fmt(%9.0g %9.2f))


*******************************************************************************************************************************************************
**** Table A7: Party Thermometer Evaluations (only major parties) *************************************************************************************
*******************************************************************************************************************************************************

xtmixed Party_Therm_Eval age_ LR_ideology_ SD_respondent_lr_placement Income Education PolInfo_Index Age Female Urbanness ContactPol Vote_curr Partisanship Vote_No_Difference Dissatisfied_Dem Govt_Perform Plurality Presidential Federalism Eff_Num_Parties  AgeEleSyst AgeDemocracy mean_lr_deviance_abs if include_==1 ||  B1003: ||  B1005: , mle
estimates store M9

xtmixed Party_Therm_Eval age_ LR_ideology_ SD_respondent_lr_placement Income Education PolInfo_Index Age Female Urbanness ContactPol Vote_curr Partisanship Vote_No_Difference Dissatisfied_Dem Govt_Perform Plurality Presidential Federalism Eff_Num_Parties  AgeEleSyst AgeDemocracy mean_lr_deviance_abs noplacedself_hat_xtmelogit if include_==1  ||  B1003: ||  B1005: , mle
estimates store M10

xtmixed Party_Therm_Eval age_ LR_ideology_ SD_respondent_lr_placement Income Education PolInfo_Index Age Female Urbanness ContactPol Vote_curr Partisanship Vote_No_Difference Dissatisfied_Dem Govt_Perform Plurality Presidential Federalism Eff_Num_Parties  AgeEleSyst AgeDemocracy mean_lr_deviance_abs noplacedself_hat_xtmelogit noplacedmin2_hat_xtmelogit if include_==1  ||  B1003: ||  B1005: , mle
estimates store M11

xtmixed Party_Therm_Eval age_ LR_ideology_ SD_respondent_lr_placement Income Education PolInfo_Index Age Female Urbanness ContactPol Vote_curr Partisanship Vote_No_Difference Dissatisfied_Dem Govt_Perform Plurality Presidential Federalism Eff_Num_Parties  AgeEleSyst AgeDemocracy mean_lr_deviance_abs noplacedself_hat_xtmelogit noSat_Crit12_hat_xtmelogit if include_==1  ||  B1003: ||  B1005: , mle
estimates store M12

esttab M9 M10 M11 M12, b(%7.3f) starlevels(* .10 ** .05 *** .01) stats (N, label("N") fmt(%9.0g %9.2f))


******************************************************************************************************************************************
**** Table A8: Party Thermometer Evaluations (only major parties) ************************************************************************
******************************************************************************************************************************************

xtmixed Party_Therm_Eval age_ LR_ideology_ SD_respondent_lr_placement Income Education PolInfo_Index Age Female Urbanness ContactPol Vote_curr Partisanship Vote_No_Difference Dissatisfied_Dem Govt_Perform Plurality Presidential Federalism Eff_Num_Parties  AgeEleSyst AgeDemocracy expert_lr_deviance_abs if include_==1 ||  B1003: ||  B1005: , mle
estimates store M13

xtmixed Party_Therm_Eval age_ LR_ideology_ SD_respondent_lr_placement Income Education PolInfo_Index Age Female Urbanness ContactPol Vote_curr Partisanship Vote_No_Difference Dissatisfied_Dem Govt_Perform Plurality Presidential Federalism Eff_Num_Parties  AgeEleSyst AgeDemocracy expert_lr_deviance_abs noplacedself_hat_xtmelogit if include_==1  ||  B1003: ||  B1005: , mle
estimates store M14

xtmixed Party_Therm_Eval age_ LR_ideology_ SD_respondent_lr_placement Income Education PolInfo_Index Age Female Urbanness ContactPol Vote_curr Partisanship Vote_No_Difference Dissatisfied_Dem Govt_Perform Plurality Presidential Federalism Eff_Num_Parties  AgeEleSyst AgeDemocracy expert_lr_deviance_abs noplacedself_hat_xtmelogit noplacedmin2_hat_xtmelogit if include_==1  ||  B1003: ||  B1005: , mle
estimates store M15

xtmixed Party_Therm_Eval age_ LR_ideology_ SD_respondent_lr_placement Income Education PolInfo_Index Age Female Urbanness ContactPol Vote_curr Partisanship Vote_No_Difference Dissatisfied_Dem Govt_Perform Plurality Presidential Federalism Eff_Num_Parties  AgeEleSyst AgeDemocracy expert_lr_deviance_abs noplacedself_hat_xtmelogit noSat_Crit12_hat_xtmelogit if include_==1  ||  B1003: ||  B1005: , mle
estimates store M16

esttab M13 M14 M15 M16, b(%7.3f) starlevels(* .10 ** .05 *** .01) stats (N, label("N") fmt(%9.0g %9.2f))
